package day01;


/**
 * @author feng
 * @Date 2021/12/22 18:20
 * 子类也是泛型类，父类与子类泛型要一致
 * 父子依赖的传递性
 */
public class Dog<T> extends Annimal<T> {
    private T data;

    public Dog() {
    }

    public Dog(T data) {
        this.data = data;
    }

    @Override
    public T getData() {
        return super.getData();
    }
}
